package com.ruiyi.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

//只要是做了输入操作，都需要使用dto类
@Data
public class DeptDto {

    private Long id;

    @NotNull
    @Pattern(regexp = ".{5,20}")
    private String name;

    @NotNull
    @Pattern(regexp = ".{6,30}")
    private String loc;

}
